package com.dyson.pool.testDbPool.config;

import com.dyson.pool.DbPool;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author:DysonWy@Gmail.com
 * @time:2019/8/10 16:13
 */
@Configuration
public class CofigBean {
    @Bean
    public DbPool dbPool() {
        DbPool dbPool = new DbPool();
        dbPool.setDriver("com.mysql.jdbc.driver");
        dbPool.setUrl("jdbc:mysql://rm-2zer78hnrlq0q0r853o.mysql.rds.aliyuncs.com/dipingjie_test?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false");
        dbPool.setUsername("renjun");
        dbPool.setPassword("TongpaoStudio2019");
        return dbPool;
    }
}
